home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Grafik / raylabwos / scenes / mandel.rl < prev    next >
Encoding:
Text File  |  1998-11-08  |  1.1 KB  |  100 lines

  1. #
  2. #    Name:    mandel.rl
  3. #    Author:    Marcus Geelnard
  4. #    Date:    1-Jun-1996
  5. #
  6. #    Example of the Mandelbrot set texture
  7. #
  8.  
  9. Deftexture:
  10.     pattern    mandel
  11.     colormap 5
  12.         0.0  0.0 0.0 0.0
  13.         0.1  1.0 0.0 0.0
  14.         0.6  1.0 0.0 1.0
  15.         0.8  1.0 1.0 0.0
  16.         1.0  0.4 0.4 0.5
  17.     reflect    0.3 0.4 0.5
  18.     phong    0.6
  19.     phongsize 30
  20.     transform:
  21.         move 0.5 0 0
  22.         scale 2 2 2
  23.     :end
  24. :end
  25.  
  26.  
  27. #
  28. #  This is a cylinder (with a round top) with a mandelbrot fractal on it:
  29. #
  30.  
  31. Csg:
  32.  
  33.     Cylinder:
  34.         radius 2.8
  35.         start 0 0 -10   end 0 0 0
  36.     :end
  37.  
  38.     PLUS
  39.  
  40.     Ellipsoid:
  41.         radius 2.8 2.8 0.6
  42.         centre 0 0 0
  43.     :end
  44.  
  45. :end
  46.  
  47. deftexture:  default  :end
  48.  
  49.  
  50. #
  51. #  Wow!  Blurb makes terrific clouds!
  52. #
  53.  
  54. Sphere:
  55.     radius 2000
  56.     centre 0 0 0
  57.     texture:
  58.         pattern blurb
  59.         turbulence 0.6
  60.         colormap 4
  61.             0.0  0.0 0.4 1.0
  62.             0.6  0.0 0.4 1.0
  63.             0.72 0.7 0.9 1.0
  64.             1.0  0.9 1.0 1.0
  65.         ambient 1.0  diffuse 0  phong 0
  66.         transform:
  67.             scale 900 900 200
  68.             move -400 -300 100
  69.         :end
  70.     :end
  71. :end
  72.  
  73.  
  74. #
  75. # Light-sources (the red light-source gives a nice effect):
  76. #
  77.  
  78. Light:
  79.     location  -40 5 20
  80.     color 1 1 1
  81. :end
  82.  
  83.  
  84. Light:
  85.     location  30 10 15
  86.     color 1 0 0
  87. :end
  88.  
  89.  
  90. #
  91. # This is the camera:
  92. #
  93.  
  94. Camera:
  95.     location  8 -6 4.2
  96.     viewpoint -0.5 -0.3 -1
  97. :end
  98.  
  99.  
  100.